package test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import test.ResponseEnum;
import test.exception.BaseException;
import test.pojo.Student;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2023/1/2 17:39
 * @ Description:
 */
@RestController
@RequestMapping("/")
public class ExceptionHandleController {
    @RequestMapping("/test")
    public String test()  {
        Student student = null;
        ResponseEnum.NULLPOINTEREXCEPTION.assertNotNull(student);
        return null;
    }
}
